import { Tools } from 'weaver-mobile';

export const isSettedQuestion = (params = {}) => Tools.callApi({
    url: '/api/hrm/password/isSettedQuestion',
    method: 'GET',
    params
});

export const verifyPswd = (params = {}) => Tools.callApi({
    url: '/api/hrm/password/verifyPswd',
    method: 'POST',
    params
});

export const getPasswordQuestion = (params = {}) => Tools.callApi({
    url: '/api/hrm/password/getPasswordQuestion',
    method: 'POST',
    params
});

export const insertQuestion = (params = {}) => Tools.callApi({
    url: '/api/hrm/password/insertQuestion',
    method: 'POST',
    params
});

export const changePswSwitch = (params = {}) => Tools.callApi({
    url: '/api/hrm/password/changePswSwitch',
    method: 'POST',
    params
});

